package com.practice.communication.nio;

import java.util.Scanner;

public class Bootstrap {
	
	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception {
		Server.start();
		
		Thread.sleep(1000);
		
		Client.start();
		
		while (Client.sendMsg(new Scanner(System.in).nextLine()));
	}

}
